MailPoet\Segments\WooCommerce A

Total Complexity 57
Dependencies 18
Dependents 7
Total lines 518
Lines of code 379
Logical lines of code 187
Comment lines 56
Methods 17
Properties 12

Methods 17

Method Rating Maintainability Complexity Lines of code
synchronizeRegisteredCustomer()
A
46 11 39
synchronizeGuestCustomer()
A
51 9 27
updateNames()
A
47 8 37
removeOrphanedSubscribers()
S
41 2 62
insertSubscribersFromOrders()
S
50 4 31
insertSubscriberFromOrder()
S
58 3 16
synchronizeCustomers()
S
59 3 15
ensureColumnCollation()
S
60 3 14
updateStatus()
S
53 2 24
shouldShowWooCommerceSegment()
S
67 3 8
insertSubscribers()
S
58 2 15
updateGlobalStatus()
S
52 1 30
needsCollationChange()
S
63 2 11
insertUsersToSegment()
S
60 1 14
unsubscribeUsersFromSegment()
S
61 1 13
__construct()
S
62 1 12
markRegisteredCustomers()
S
62 1 11